package com.example.user.imp

import com.example.library_base.http.HttpResult
import com.example.user.BuildConfig
import com.example.user.user.UserModel
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.QueryMap

interface Service {

    @Headers("Domain-Name: ${BuildConfig.BASE_URL}")
    @GET("/api/tianqi")
    suspend fun login(@QueryMap queryMap: Map<String, @JvmSuppressWildcards Any>): HttpResult<UserModel>

    @Headers("Domain-Name: ${BuildConfig.BASE_URL}")
    @GET("/v1/restaurant_list")
    suspend fun getRestaurantList(@QueryMap queryMap: Map<String, @JvmSuppressWildcards Any>): HttpResult<Any>
}